﻿@model BrnMall.Web.Mobile.Models.StoreClassModel
@{
    Layout = null;
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>@Model.StoreClassInfo.Name-@WorkContext.StoreInfo.Name-@{@WorkContext.MallConfig.SiteTitle}触屏版</title>
    @Html.Raw(WorkContext.MallConfig.SEOKeyword)
    @Html.Raw(WorkContext.MallConfig.SEODescription)
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="@{@WorkContext.CSSCDN}/mobile/css/base.css" rel="stylesheet" type="text/css">
    <link href="@{@WorkContext.CSSCDN}/mobile/css/store.css" rel="stylesheet" type="text/css">
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/utils.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/common.js" type="text/javascript"></script>
</head>

<body>
<div class="viewport">

<header>
  <div class="new-header">
    <a href="javascript:pageBack()" class="new-a-back"><span>返回</span></a>
    <h2>@Model.StoreClassInfo.Name</h2>
    <a href="javascript:navSH()" class="new-a-brn"><span>BRN键</span></a> 
  </div>
  <div class="new-brn-tab" id="nav" style=" display:none;">
    <div class="new-tbl-type"> 
    <a href="@Url.Action("index", "home")" class="new-tbl-cell"><span class="icon">首页</span><p style="color:#6e6e6e;">首页</p></a> 
    <a href="@Url.Action("list", "category")" class="new-tbl-cell"><span class="icon2 on">分类搜索</span><p style="color:#6e6e6e;" class="on">分类搜索</p></a> 
    <a href="@Url.Action("index", "cart")" class="new-tbl-cell"><span class="icon3">购物车</span><p style="color:#6e6e6e;">购物车</p></a> 
    <a href="@Url.Action("index", "ucenter")" class="new-tbl-cell"><span class="icon4 on">个人中心</span><p style="color:#6e6e6e;" class="on">个人中心</p></a> 
    </div>
  </div>
</header>


<div class="storeSearch">
  <div><a href="@Url.Action("class", new RouteValueDictionary { { "storeId", WorkContext.StoreId }, { "storeCid", Model.StoreCid }, { "sortColumn", 0 }, { "sortDirection", 0 }, { "page", 1 } })"><i class="icon-volume @if (Model.SortColumn == 0){ <text>on</text>}"></i><span>销量</span></a></div>
  <div><a href="@Url.Action("class", new RouteValueDictionary { { "storeId", WorkContext.StoreId }, { "storeCid", Model.StoreCid }, { "sortColumn", 1 }, { "sortDirection", 0 }, { "page", 1 } })"><i class="icon-price @if (Model.SortColumn == 1){ <text>on</text>}"></i><span>价格</span></a></div>
  <div><a href="@Url.Action("class", new RouteValueDictionary { { "storeId", WorkContext.StoreId }, { "storeCid", Model.StoreCid }, { "sortColumn", 4 }, { "sortDirection", 0 }, { "page", 1 } })"><i class="icon-new @if (Model.SortColumn == 4){ <text>on</text>}"></i><span>人气</span></a></div>
</div>



<div class="storeI">
<ul class="storeList">

@foreach (PartProductInfo info in Model.ProductList)
{
    <li><a href="@Url.Action("product", "catalog", new RouteValueDictionary { { "pid", info.Pid } })">
        <div class="img"><img src="@{@WorkContext.ImageCDN}/upload/store/@info.StoreId/product/show/thumb230_230/@info.ShowImg"></div>
        <div class="p-info">@info.Name</div>
        <div class="price">￥@info.ShopPrice</div>
    </a></li>
}

</ul>
</div>

<div class="storeI" style="margin-bottom:20px;">
<div class="pagination">
    <a href="javascript:;" class="page-num">@if(Model.PageModel.TotalPages>0){@Model.PageModel.PageNumber}else{<text>0</text>}/@Model.PageModel.TotalPages</a>
    @if (Model.PageModel.HasPrePage)
    { 
        <a class="last" href = "@Url.Action("class", new RouteValueDictionary { { "storeId", WorkContext.StoreId }, { "storeCid", Model.StoreCid }, { "sortColumn", Model.SortColumn }, { "sortDirection", Model.SortDirection }, { "page", Model.PageModel.PrePageNumber } })">上一页</a>
    }
    else
    {
        <a class="last" href="javascript:;">上一页</a>
    }
    @if (Model.PageModel.HasNextPage)
    {
        <a class="next" href = "@Url.Action("class", new RouteValueDictionary { { "storeId", WorkContext.StoreId }, { "storeCid", Model.StoreCid }, { "sortColumn", Model.SortColumn }, { "sortDirection", Model.SortDirection }, { "page", Model.PageModel.NextPageNumber } })">下一页</a>
    }
    else
    {
        <a class="next" href="javascript:;">下一页</a>
    } 
</div>
</div>

</div>

</body>
</html>
